<!DOCTYPE html>
<html>
<head>
    {include file="../application/common/header.html" /}
</head>

<body>
    <div id="group_fruit_regtb">
        <form id="group_fruit_regForm" class="m5">
            学期：
            <select class="form-control1" name="termId" id="termId"></select>
            获奖级别：
            <select class="form-control1" name="获奖级别" id="获奖级别"></select>
            获奖等第：
            <select class="form-control1" name="获奖等第" id="获奖等第"></select>
            授奖对象：
            <input class="form-control1" name="授奖对象" id="授奖对象">
            <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-search'" onclick="searchForm('group_fruit_reg')">查询</a>
            <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-clear'" onclick="resetForm('group_fruit_reg')">重置</a><br/>
        </form>
    </div>
    <table id="group_fruit_regdg">
        <thead>
            <tr>
                <th data-options="field:'ID',checkbox:true">ID</th>
                <th data-options="field:'学期ID',title:'学期名称',editor:{
                    type:'combobox',
                    options:{
                        editable:false,
                        panelHeight:'auto',
                        required:true,
                        valueField:'ID',
                        textField:'学期名称',
                        url:'/compent/Util/termList.html'
                    }
                },formatter:function(value,row,index){
                    return row.学期名称;
                }"></th>
                <th data-options="field:'获奖时间',title:'获奖时间',editor:{type:'datebox',options:{required:true}}"></th>
                <th data-options="field:'授奖对象',title:'授奖对象',editor:{type:'textbox',options:{required:true}}"></th>
                <th data-options="field:'荣誉称号',title:'荣誉称号',width:200,editor:{type:'textbox'},
                formatter: function(value, row, index) {
                    return '<span class=\'note\' title=\''+value+'\'>'+ value + '</span>';
                }"></th>
                <th data-options="field:'获奖级别',title:'获奖级别',editor:{
                    type:'combobox',
                    options:{
                        editable:false,
                        panelHeight:'auto',
                        valueField:'value',
                        textField:'text',
                        url:'/getTeacherFruitConf/获奖级别',
                        method:'GET'
                    }}"></th>
                <th data-options="field:'获奖等第',title:'获奖等第',editor:{
                    type:'combobox',
                    options:{
                        editable:false,
                        panelHeight:'auto',
                        valueField:'value',
                        textField:'text',
                        url:'/getTeacherFruitConf/获奖等第',
                        method: 'GET'
                    }}"></th>
                <th data-options="field:'授奖单位',title:'授奖单位',editor:{type:'textbox',options:{required:true}}"></th>
                <th data-options="field:'备注',title:'备注',width:200,editor:{type:'textbox'},
                formatter: function(value, row, index) {
                    return '<span class=\'note\' title=\''+value+'\'>'+ value + '</span>';
                }"></th>
            </tr>
        </thead>
    </table>

    <script type="text/javascript">
        $(function(){
            var url = "/fruit/group_fruit_reg";
            initDatagridAdmin("group_fruit_reg",url,1,1,1,1,1);
            termList("group_fruit_reg");
            getTeacherFruitConf("group_fruit_reg","获奖级别");
            getTeacherFruitConf("group_fruit_reg","获奖等第");
        })  
    </script>
</body>
</html>